package com.yuhang.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuhang.entity.HyAdmin;
import com.yuhang.entity.HyBuild;
import com.yuhang.entity.Tree;
import com.yuhang.service.HyBuildService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yuhang
 * @since 2021-04-20
 */
@RestController
@RequestMapping("/hy-build")
public class HyBuildController {

    @Autowired
    private HyBuildService hyBuildService;

    @RequestMapping("/showTree")
    public List<Tree> showTree(){
        List<Tree> list = hyBuildService.selectTree();
        return list;
    }



}
